package com.bwie.mapper;

import com.bwie.common.domain.Menu;
import com.bwie.common.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @className: SysMapper
 * @Description: TODO
 * @version: v1.８.0
 * @author: GONGWENXUE
 * @date: 2025/10/22 9:27
 */
@Mapper
public interface SysMapper {
    /**
     * 用户名名称登录
     * @param username
     * @return
     */
    User selectNameByUser(@Param("username") String username);

    /**
     * 手机号密码登录
     * @param phone
     * @return
     */
    User selectPhoneByUser(@Param("phone") String phone);


    List<Menu> getMenu(@Param("userId") Integer userId);
}
